<%-- 
    Document   : login
    Created on : 2013-4-28, 15:27:18
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
    <head>
        <base href="<%= basePath%>"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>道路客运安全管理系统</title>
        <script type="text/javascript" src="resource/js/jquery-1.9.1.min.js"></script>
        <style type="text/css">
            <!--
            body {
                margin-left: 0px;
                margin-top: 0px;
                margin-right: 0px;
                margin-bottom: 0px;
                overflow:hidden;
            }
            .STYLE3 {font-size: 12px; color: #adc9d9; }
            -->
        </style>
        <script>
            $(document).ready(function() {
            });
        </script>
    </head>

    <body>
        <form id="form1" action="main/dologin" method="post">
            <table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td bgcolor="#1075b1">&nbsp;</td>
                </tr>
                <tr>
                    <td height="608" background="resource/images/login/login_03.gif"><table width="847" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td height="318" background="resource/images/login/login_04.gif">&nbsp;</td>
                            </tr>
                            <tr>
                                <td height="84"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td width="381" height="84" background="resource/images/login/login_06.gif">&nbsp;</td>
                                            <td width="162" valign="middle" background="resource/images/login/login_07.gif">
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td width="44" height="24" valign="bottom"><div align="right"><span class="STYLE3">用户</span></div></td>
                                                        <td width="10" valign="bottom">&nbsp;</td>
                                                        <td height="24" colspan="2" valign="bottom">
                                                            <div align="left">
                                                                <input type="text" name="name" id="name" style="width:100px; height:17px; background-color:#87adbf; border:solid 1px #153966; font-size:12px; color:#283439; ">
                                                            </div>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="24" valign="bottom"><div align="right"><span class="STYLE3">密码</span></div></td>
                                                        <td width="10" valign="bottom">&nbsp;</td>
                                                        <td height="24" colspan="2" valign="bottom"><input type="password" name="password" id="password" style="width:100px; height:17px; background-color:#87adbf; border:solid 1px #153966; font-size:12px; color:#283439; "></td>
                                                    </tr>
                                                    <tr>
                                                        <td height="24" valign="bottom"><div align="right"><span class="STYLE3">验证码</span></div></td>
                                                        <td width="10" valign="bottom">&nbsp;</td>
                                                        <td width="52" height="24" valign="bottom"><input type="text" name="captcha" id="captcha" style="width:50px; height:17px; background-color:#87adbf; border:solid 1px #153966; font-size:12px; color:#283439; "></td>
                                                        <td width="62" valign="bottom"><div align="left" style="height:20px;"><img id="capImg" src="captcha/get" width="50" height="20"></div></td>
                                                    <script>
                                                        $("#capImg").click(function(){
                                                           $("#capImg").attr("src","captcha/get?"+Math.random()); 
                                                        });
                                                    </script>
                                        </tr>
                                        <tr></tr>
                                    </table>
                                </td>
                                <td width="26"><img src="resource/images/login/login_08.gif" width="26" height="84"></td>
                                <td width="67" background="resource/images/login/login_09.gif">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td height="25"><div align="center"><input type="submit" id="submit" style="background: url(resource/images/login/dl.gif);width:57px;height:20px;border:0px" value=""></div></td>
                                        </tr>
                                        <tr>
                                            <td height="25"><div align="center"><input type="reset" id="reset" style="background: url(resource/images/login/cz.gif);width:57px;height:20px;border:0px" value=""></div></td>
                                        </tr>
                                    </table>
                                </td>
                                <td width="211" background="resource/images/login/login_10.gif">&nbsp;</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td height="206" background="resource/images/login/login_11.gif">&nbsp;</td>
                </tr>
            </table></td>
    </tr>
    <tr>
        <td bgcolor="#152753">&nbsp;</td>
    </tr>
</table>
</form>
<script>
    <%
        Object error = request.getAttribute("error");
        if (error != null) {
            out.println("alert('" + error.toString() + "');");
        }
    %>
</script>
</body>
</html>